#ifndef QWENVL_H
#define QWENVL_H

#include <QObject>
#include <QTimer>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>

class QwenVL : public QObject
{
    Q_OBJECT
public:
    explicit QwenVL(QObject *parent = nullptr);
    void analyzeImage(const QString &imagePath);

signals:
    void analysisCompleted(const QString &result);
    void analysisFailed(const QString &error);

private:
    void handleResponse(QNetworkReply *reply);
    static const QString API_KEY;  // API密钥硬编码在类中
    QNetworkAccessManager m_networkManager;
};

#endif // QWENVL_H
